/*
 * Copyright 2015 2dfire.com All right reserved. This software is the
 * confidential and proprietary information of 2dfire.com ("Confidential
 * Information"). You shall not disclose such Confidential Information and shall
 * use it only in accordance with the terms of the license agreement you entered
 * into with 2dfire.com.
 */

package com.mallcai.bigdata.ladon.config.props;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * described :
 * Created by DiLong on 2017-12-11 13:49.
 * Modify:
 */
@Data
@Component
@ConfigurationProperties("spring.cors")
public class CorsProperties implements Serializable {

    private List<String> allowOrigin  = new ArrayList<>();
    private List<String> allowMethods = new ArrayList<>();
    private List<String> allowHeaders = new ArrayList<>();

    private boolean allowCredentials;
}
